package com.hunan.chinamobile.dto;

import java.util.Date;

public class BaseStationInfoDTO {

    private String id;
    private String bsName;
    private String cityName;
    private String bsLocation;
    private Integer deviceTotal;
    private Integer errorExceptionTotal;
    private Boolean ok;
    private String linkMan;
    private String linkPhone;
    private Date createdAt;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBsName() {
        return bsName;
    }

    public void setBsName(String bsName) {
        this.bsName = bsName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getBsLocation() {
        return bsLocation;
    }

    public void setBsLocation(String bsLocation) {
        this.bsLocation = bsLocation;
    }

    public Integer getDeviceTotal() {
        return deviceTotal;
    }

    public void setDeviceTotal(Integer deviceTotal) {
        this.deviceTotal = deviceTotal;
    }

    public Integer getErrorExceptionTotal() {
        return errorExceptionTotal;
    }

    public void setErrorExceptionTotal(Integer errorExceptionTotal) {
        this.errorExceptionTotal = errorExceptionTotal;
    }

    public Boolean getOk() {
        if(errorExceptionTotal == null || errorExceptionTotal == 0)
            ok = true;
        else
            ok = false;
        return ok;
    }

    public void setOk(Boolean ok) {
        this.ok = ok;
    }

    public String getLinkMan() {
        return linkMan;
    }

    public void setLinkMan(String linkMan) {
        this.linkMan = linkMan;
    }

    public String getLinkPhone() {
        return linkPhone;
    }

    public void setLinkPhone(String linkPhone) {
        this.linkPhone = linkPhone;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }
}
